ComponentOne Basic Library for UWP
Basic Library Overview / ListBox for UWP / Working with ListBox for UWP / Basic Properties
In This Topic
    Basic Properties
    In This Topic

    ListBox for UWP includes several properties that allow you to set the functionality of the control. Some of the more important properties are listed below.

    The following properties let you customize the C1ListBox control:

     

    Property

    Description

    C1ListViewer.ActualMaxZoom

    Gets the actual maximum zoom.

    C1ListViewer.ActualMinZoom

    Gets the actual minimum zoom.

    C1ListViewer.ActualZoom

    Gets the actual zoom.

    C1ListViewer.IsScrolling

    Gets a value indicating whether the list is scrolling.

    C1ListViewer.IsZooming

    Gets a value indicating whether this list is zooming.

    C1ListViewer.ItemHeight

    Gets or sets the height of each item.

    Items

    Gets the collection used to generate the content of the control.

    (Inherited from ItemsControl.)

    ItemsPanel

    Gets or sets the template that defines the panel that controls the layout of items.

    (Inherited from ItemsControl.)

    ItemsSource

    Gets or sets a collection used to generate the content of the ItemsControl.

    (Inherited from ItemsControl.)

    ItemTemplate

    Template applied to all the items of the list.

    (Inherited from C1ItemsControl.)

    ItemTemplateSelector

    Template selector used to specify different templates applied to items of the same type.

    (Inherited from C1ItemsControl.)

    C1ListViewer.ItemWidth

    Gets or sets the width of each item.

    C1ListViewer.MaxZoom

    Gets or sets the maximum zoom available.

    C1ListViewer.MinZoom

    Gets or sets the minimum zoom available.

    C1ListViewer.Orientation

    Gets or sets the orientation in which the list is displayed.

    C1ListViewer.PreviewItemTemplate

    Gets or sets the template used for previewing an item.

    C1ListViewer.RefreshWhileScrolling

    Gets or sets a value indicating whether the viewport must be refreshed while the scroll is running.

    C1ListViewer.ViewportGap

    Gets or sets a coeficient which will determine in each layout pass the size of the viewport. If zero is specified the size of the viewport will be equal to the scrollviewer viewport. If 0.5 is specified the size of the viewport will be enlarged to take up half screen more at both sides of the original viewport.

    C1ListViewer.ViewportPreviewGap

    Gets or sets a coeficient which will determine in each layout pass the size of the viewport to render items in preview mode.

    C1ListViewer.Zoom

    Gets or set the zoom applied to this list.

    C1ListViewer.ZoomMode

    Gets or sets whether the zoom is enabled or disabled.

     

    The following properties let you customize the C1ListBoxItem:

     

    Description

    C1ListViewerItem.PreviewContent

    Gets or sets the content of the preview state.

    C1ListViewerItem.PreviewContentTemplate

    Gets or sets the DataTemplate used when in preview state.

    C1ListViewerItem.State

    Gets or sets the state of the item, which can be Preview or Full.

    See Also